package day04;
//Scanner的演示：
 import java.util.Scanner;//导入一个扫描仪
public class ScannerDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);//创建一个扫面议 叫sc
        System.out.println("请输入年龄：");
        int age  =sc.nextInt();//扫描sc 并赋值给age
        System.out.println("输入商品价格：");
        double price  = sc.nextDouble();
        System.out.println("你的年龄"+age+",价格为："+price);
    }
}
